#include "fxcc/imgui/Editor.h"
#include "fxcc/core/graph/common/ProjData.h"

using namespace fxcc::graph::common;
using namespace fxcc::imgui;

template <>
bool Editor::Edit<ProjData>(const std::string& label, ProjData& inst)
{
	CheckBoxInst<bool>( "m_IsOrtho", inst.m_IsOrtho);

	EditInst<float>( "m_HorizontalFOV", inst.m_HorizontalFOV);
	EditInst<float>( "m_ClipPlaneNear", inst.m_ClipPlaneNear);
	EditInst<float>( "m_ClipPlaneFar", inst.m_ClipPlaneFar);
	EditInst<float>( "m_Aspect", inst.m_Aspect);
	ImGui::SameLine();
	if (ImGui::Button("W/H"))
	{
		inst.LoadAspect();
	}
	EditInst<float>( "m_OrthographicWidth", inst.m_OrthographicWidth);
	EditInst<float>( "m_OrthographicHeight", inst.m_OrthographicHeight);
    
    return false;
}
